import java.util.Objects;

public class Student {
    private String id;
    private String name;
    private Integer age;
    private String school;

    public Student() {

    }

    public Student(String id, String name, Integer age, String school) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.school = school;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    @Override
    public boolean equals(Object another) {
        if (this == another) return true;
        if (another == null || another.getClass() != this.getClass()) return false;
        Student anotherStudent = (Student) another;
        return Objects.equals(this.getAge(), anotherStudent.getAge()) &&
                Objects.equals(this.getId(), anotherStudent.getId()) &&
                Objects.equals(this.getName(), anotherStudent.getName()) &&
                Objects.equals(this.getSchool(), anotherStudent.getSchool());
    }

    @Override
    public String toString() {
        return "Student{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", school='" + school + '\'' +
                '}';
    }
}
